package bank.driver.local;

import java.io.IOException;

import bank.Bank;
import bank.BankDriver;

public class LocalDriver implements BankDriver {

	private Bank bank;
	
	@Override
	public void connect(String[] args) throws IOException {
		this.bank = new LocalBank();
		System.out.println("connected...");
	}

	@Override
	public void disconnect() throws IOException {
		this.bank = null;
		System.out.println("disconnected...");
	}

	@Override
	public Bank getBank() {
		return this.bank;
	}

}
